From: Colin Walters Date: Mon, 27 Jul 2009 21:47:28 +0000 (-0400) Subject: Don't line wrap application names in wells, fix running alignment X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11187 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=adfb419cebdb5ba0b6158d0f1ca4a0baeba8fd7a;p=gnome-shell.git Don't line wrap application names in wells, fix running alignment The experiment with avoiding ellipsization was a definite failure; several translations have very long names, and we'd end up with a single column. Also fix extra padding; we only want some space at the top, not left/right. --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index a939a834f..ded639bd2 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -506,8 +506,7 @@ WellDisplayItem.prototype = { this._name = new Clutter.Text({ color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR, font_name: "Sans 12px", line_alignment: Pango.Alignment.CENTER, - line_wrap: true, - line_wrap_mode: Pango.WrapMode.WORD, + ellipsize: Pango.EllipsizeMode.END, text: appInfo.get_name() }); nameBox.append(this._name, Big.BoxPackFlags.NONE); if (this._windows.length > 0) { @@ -721,7 +720,7 @@ AppWell.prototype = { this._runningBox = new Big.Box({ border_color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR, border_top: 1, corner_radius: 3, - padding: GenericDisplay.PREVIEW_BOX_PADDING }); + padding_top: GenericDisplay.PREVIEW_BOX_PADDING }); this._runningArea = new WellArea(width, false); this._runningArea.connect('activated', Lang.bind(this, function (a, display) { this.emit('activated');